package com.cracker.websocket.server.event;

import com.cracker.websocket.server.entity.UserEntity;
import org.springframework.context.ApplicationEvent;

import javax.websocket.Session;

public class SessionOfflineEvent extends ApplicationEvent {
    private Session session;
    private UserEntity userEntity;

    public SessionOfflineEvent(Object source, Session session, UserEntity userEntity) {
        super(source);
        this.session = session;
        this.userEntity = userEntity;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public UserEntity getUserEntity() {
        return userEntity;
    }

    public void setUserEntity(UserEntity userEntity) {
        this.userEntity = userEntity;
    }
}
